<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="localservices_v1.html">Local Services API</a> . <a href="localservices_v1.accountReports.html">accountReports</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#search">search(endDate_day=None, endDate_month=None, endDate_year=None, pageSize=None, pageToken=None, query=None, startDate_day=None, startDate_month=None, startDate_year=None, x__xgafv=None)</a></code></p>
<p class="firstline">Get account reports containing aggregate account data of all linked GLS accounts. Caller needs to provide their manager customer id and the associated auth credential that allows them read permissions on their linked accounts.</p>
<p class="toc_element">
  <code><a href="#search_next">search_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="search">search(endDate_day=None, endDate_month=None, endDate_year=None, pageSize=None, pageToken=None, query=None, startDate_day=None, startDate_month=None, startDate_year=None, x__xgafv=None)</code>
  <pre>Get account reports containing aggregate account data of all linked GLS accounts. Caller needs to provide their manager customer id and the associated auth credential that allows them read permissions on their linked accounts.

Args:
  endDate_day: integer, Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
  endDate_month: integer, Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
  endDate_year: integer, Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
  pageSize: integer, The maximum number of accounts to return. If the page size is unset, page size will default to 1000. Maximum page_size is 10000. Optional.
  pageToken: string, The `next_page_token` value returned from a previous request to SearchAccountReports that indicates where listing should continue. Optional.
  query: string, A query string for searching for account reports. Caller must provide a customer id of their MCC account with an associated Gaia Mint that allows read permission on their linked accounts. Search expressions are case insensitive. Example query: | Query | Description | |-------------------------|-----------------------------------------------| | manager_customer_id:123 | Get Account Report for Manager with id 123. | Required.
  startDate_day: integer, Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
  startDate_month: integer, Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
  startDate_year: integer, Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A page of the response received from the SearchAccountReports method. A paginated response where more pages are available has `next_page_token` set. This token can be used in a subsequent request to retrieve the next request page.
  &quot;accountReports&quot;: [ # List of account reports which maps 1:1 to a particular linked GLS account.
    { # An Account Report of a GLS account identified by their account id containing aggregate data gathered from a particular date range. Next ID: 18
      &quot;accountId&quot;: &quot;A String&quot;, # Unique identifier of the GLS account.
      &quot;aggregatorInfo&quot;: { # Conatiner for aggregator specific information if lead is for an aggregator GLS account. # Aggregator specific information related to the account.
        &quot;aggregatorProviderId&quot;: &quot;A String&quot;, # Provider id (listed in aggregator system) which maps to a account id in GLS system.
      },
      &quot;averageFiveStarRating&quot;: 3.14, # Average review rating score from 1-5 stars.
      &quot;averageWeeklyBudget&quot;: 3.14, # Average weekly budget in the currency code of the account.
      &quot;businessName&quot;: &quot;A String&quot;, # Business name of the account.
      &quot;currencyCode&quot;: &quot;A String&quot;, # Currency code of the account.
      &quot;currentPeriodChargedLeads&quot;: &quot;A String&quot;, # Number of charged leads the account received in current specified period.
      &quot;currentPeriodConnectedPhoneCalls&quot;: &quot;A String&quot;, # Number of connected phone calls (duration over 30s) in current specified period.
      &quot;currentPeriodPhoneCalls&quot;: &quot;A String&quot;, # Number of phone calls in current specified period, including both connected and unconnected calls.
      &quot;currentPeriodTotalCost&quot;: 3.14, # Total cost of the account in current specified period in the account&#x27;s specified currency.
      &quot;impressionsLastTwoDays&quot;: &quot;A String&quot;, # Number of impressions that customers have had in the past 2 days.
      &quot;phoneLeadResponsiveness&quot;: 3.14, # Phone lead responsiveness of the account for the past 90 days from current date. This is computed by taking the total number of connected calls from charged phone leads and dividing by the total number of calls received.
      &quot;previousPeriodChargedLeads&quot;: &quot;A String&quot;, # Number of charged leads the account received in previous specified period.
      &quot;previousPeriodConnectedPhoneCalls&quot;: &quot;A String&quot;, # Number of connected phone calls (duration over 30s) in previous specified period.
      &quot;previousPeriodPhoneCalls&quot;: &quot;A String&quot;, # Number of phone calls in previous specified period, including both connected and unconnected calls.
      &quot;previousPeriodTotalCost&quot;: 3.14, # Total cost of the account in previous specified period in the account&#x27;s specified currency.
      &quot;totalReview&quot;: 42, # Total number of reviews the account has up to current date.
    },
  ],
  &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token to retrieve the next page of results. When `next_page_token` is not filled in, there is no next page and the list returned is the last page in the result set.
}</pre>
</div>

<div class="method">
    <code class="details" id="search_next">search_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

</body></html>